package com.example.demo.nettydemo.message;

import com.example.demo.nettydemo.Message;
import com.example.demo.nettydemo.common.CommandConstant;


public class GroupMessageRequest extends Message {

    private String sendFrom;


    private String group;


    private String content;


    public GroupMessageRequest(){
        super.messageType = CommandConstant.groupMessageRequest;
    }


    public GroupMessageRequest(String sendFrom,String group,String content){
        super.messageType = CommandConstant.groupMessageRequest;
        this.sendFrom = sendFrom;
        this.group = group;
        this.content = content;

    }


    public String getSendFrom() {
        return sendFrom;
    }

    public void setSendFrom(String sendFrom) {
        this.sendFrom = sendFrom;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    @Override
    public String toString() {
        return "GroupMessageRequest{" +
                "messageType=" + messageType +
                ", sendDate=" + sendDate +
                ", sendFrom='" + sendFrom + '\'' +
                ", group='" + group + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
